import request from '@u/request'
import { HttpMethod } from '@u/http'

// 查询列表
export function listVehicle(query) {
  return request({
    url: '/beauty/vehicle/list',
    method: HttpMethod.GET,
    params: query
  })
}

// 查询
export function getVehicle(id) {
  return request({
    url: '/beauty/vehicle/' + id,
    method: HttpMethod.GET
  })
}

// 新增
export function addVehicle(data) {
  return request({
    url: '/beauty/vehicle',
    method: HttpMethod.POST,
    data: data
  })
}

// 修改
export function updateVehicle(data) {
  return request({
    url: '/beauty/vehicle',
    method: HttpMethod.PUT,
    data: data
  })
}

// 删除
export function delVehicle(id) {
  return request({
    url: '/beauty/vehicle/' + id,
    method: HttpMethod.DELETE
  })
}
